/*
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-06-29 18:09:39
 * @LastEditors: voanit
 * @LastEditTime: 2022-06-29 18:26:35
 */
// import *  as  obj from 'pinia'
import {defineStore} from 'pinia'
// console.log(obj,76);
// defineStore('模块id',对象)
const useCounterStore =defineStore('counterId',{
  state(){
    return  {
      count:10
    }
  },
  actions:{
    increment(){
      console.log(this,4);
      this.count+=10
    }
  },
  getters:{}
})

export default useCounterStore